// 用于主页面通用内容
import Main from '@/views/main.vue';
// 用于二级页面的内容
import SubMain from '@/views/sub-main.vue';

export default {
	path: '/finance',
	name: 'finance',
	redirect: '/finance/route/demo',
	meta: {
		title: '财务',
		icon: 'ios-card'
	},
    component: Main,
    children: [
		{
			path: 'route',
			name: 'finance_route',
			meta: {
				title: '财务'
			},
			component: SubMain,
			children: [
				{
					path: 'demo',
					name: 'finance_route_demo',
					meta: {
						title: '测试地址',
						disabled: true
					},
					component: resolve => {
						require(['@/views/finance/route/demo/index.vue'], resolve)
					}
				}
			]
		}
    ]
}
